package com.xxc.example.service;

import com.xxc.logger.annotation.Log;
import org.springframework.stereotype.Service;

/**
 * 此类为Service层，为了简化直接写了类
 * Logger默认只打印Controller层，你可以在Spring管理的Bean的方法或类上添加{@link Log}注解，Logger便会打印
 */
@Service
public class LogSampleService {

    @Log
    public String sayHello(String name) {
        return "hello" + name;
    }
}
